package org.sbear.boot;


import org.sbear.client.RPCConsumer;
import org.sbear.serivice.UserService;


public class ClientBootStrap {
    public static void main(String[] args) throws InterruptedException {
        RPCConsumer rpcConsumer = new RPCConsumer();
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class,"UserService","sayHello");

        while (true){
            Thread.sleep(1000);
            System.out.println(proxy.sayHello("123456"));
        }
    }
}
